/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package accountproject.model;

/**
 *
 * @author Amon
 */
public class Detail {

    private int workId;
    private double unitPrice;
    private int amount;
    private double discount;

    public int getAmount() {
        return amount;
    }

    public void setAmount(int amount) {
        this.amount = amount;
    }

    public double getDiscount() {
        return discount;
    }

    public void setDiscount(int discount) {

        this.discount = (100.0 - discount) / 100.0;
    }

    public double getUnitPrice() {
        return unitPrice;
    }

    public void setUnitPrice(double unitPrice) {
        this.unitPrice = unitPrice;
    }

    public int getWorkId() {
        return workId;
    }

    public void setWorkId(int workId) {
        this.workId = workId;
    }
}
